import Vue from 'vue';
import './methods/index.js';

const complexList = require.context('./el-components', true, /.vue$/); //自定义组件注册全局

complexList.keys().forEach(fileName => {
	const component = complexList(fileName).default; // 组件
	const componentName = component.name; // 组件名
	if (componentName) Vue.component(componentName, component);
});
